<?php

// +----------------------------------------------------------------------
// |ZBPHP[基于ThinkPHP5.1开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2019 http://www.benbenwangluo.com
// +----------------------------------------------------------------------
// | Author 似水星辰 [ 2630481389@qq.com ]
// +----------------------------------------------------------------------
// | 中犇软件 技术六部 出品
// +----------------------------------------------------------------------
namespace app\customer\model;

use think\Model;

/**
 * 客服提示语
 * @author 晓风<215628355@qq.com>
 * @date 2021-5-27 16:23:11
 */
class Reply extends Model {

    // 设置当前模型对应的完整数据表名称
    protected $table = '__CUSTOMER_REPLY__';
    // 自动写入时间戳
    protected $autoWriteTimestamp = true;

    
      
    public static $replyType = [
        '1' => '常见问题',
        '2' => '搜索问题',   
    ];


    /**
     * 获取文档列表
     * @param mixed $map 筛选条件
     * @param mixed $order 排序
     * @return mixed
     * @author 晓风<215628355@qq.com>
     */
    public static function getList($map = [], $order = []) {
        return self::where($map)
                        ->order($order)
                        ->paginate();
    }

}
